import request from '@/utils/request'

// 查询填报对象列表
export function listReportObj(query) {
  return request({
    url: '/dataBase/reportObj/list',
    method: 'get',
    params: query
  })
}

// 查询填报对象详细
export function getReportObj(id) {
  return request({
    url: '/dataBase/reportObj/' + id,
    method: 'get'
  })
}

// 新增填报对象
export function addReportObj(data) {
  return request({
    url: '/dataBase/reportObj',
    method: 'post',
    data: data
  })
}

// 修改填报对象
export function updateReportObj(data) {
  return request({
    url: '/dataBase/reportObj',
    method: 'put',
    data: data
  })
}

// 删除填报对象
export function delReportObj(id) {
  return request({
    url: '/dataBase/reportObj/' + id,
    method: 'delete'
  })
}
